#ifndef __SMS_FILELIST__
#define __SMS_FILELIST__

#include "listview.h"

typedef enum _SUPPORT_TYPE{
 STYPE_MOVIE=1,
 STYPE_MUSIC=1<<1,
 STYPE_PIC=1<<2,
 STYPE_GAMES=1<<3, 
 STYPE_DIR=1<<4,
}SUPPORT_TYPE;

#define STYPE_ALL (STYPE_MOVIE|STYPE_MUSIC|STYPE_PIC|STYPE_GAMES|STYPE_DIR)
#define STYPE_COUNT 5

typedef struct _SupportFile{
	char *fullname;
	SUPPORT_TYPE type;
	int select;
}SFile;

typedef struct _FileList{
	int type;	
	char *cur_dir;
	
	ListView *lv;	
}FileList;

FileList *filelist_new(GooCanvasItem *,int x,int y,int type,Theme *);

void filelist_destroy(FileList *fl);

gboolean filelist_load_dir(FileList *fl,const char *dir,int member_type);

SFile * filelist_get_cur(FileList *fl);

#endif
